<%@ taglib prefix="s" uri="/struts-tags"%>

<!-- action="updateBannersFees.htm" -->
<s:form action="updateBannersFees" theme="simple" method="post" id="form">
	<table width="100%">
		<tr>
			<td>
				<s:actionmessage cssClass="verdana11greynormal" />
				<s:actionerror cssClass="Note-red" />
			</td>
		</tr>
		<tr>
			<td height="40" class="sectionheading bottom-border">
				Banner Fees
			</td>
		</tr>
		<tr>
			<td valign="top" class="verdana12blacknormal">
				Please enter the fees for Banners Impressions. Do not include any
				currency symbols, only digits and the decimal point or comma.
				<br>
				<br>
			</td>
		</tr>
		<tr>
			<td valign="top" width="100%">
				<table width="100%" border="0" cellpadding="0" cellspacing="0" class="Textfiled-border">
					<tr align="center" bgcolor="#E9E9E9" class="right-border verdana12darkgreybold">
						<td>Banner</td>
						<td>Euro/day</td>
						<td>Euro/view</td>
						<td>Euro/click </td>
					</tr>
					<s:iterator value="bannerFees" status="rowstatus">
							<s:hidden name="bannerFeeValues[%{id}].id" value="%{id}" />
							<s:hidden name="bannerFeeValues[%{id}].bannerSettings.id" value="%{bannerSettings.id}" />
							<s:set name="classCSS" value="%{'Textfiled-no-border-odd'}" var="classCSS"></s:set>
							<s:set name="bgColor" value="%{'#FFFFFF'}" var="bgColor"></s:set>

							<s:if test="#rowstatus.even">
								<s:set var="classCSS" value="%{'Textfiled-no-border-even'}"></s:set>
								<s:set var="bgColor" value="%{'#F8F8F8'}"></s:set>
							</s:if>
					<tr>
						<td align="center" class="verdana12Greybold right-border" bgcolor="<s:property value="%{bgColor}" />">
							<s:property value="bannerSettings.formatName" />
						</td>
						<td align="center" class="verdana12Greybold right-border" bgcolor="<s:property value="%{bgColor}" />">
							<s:textfield theme="simple" cssClass="%{classCSS}"
										name="bannerFeeValues[%{id}].feesPerDay"
										value="%{feesPerDay}" size="15" />
						</td>
						<td align="center" class="verdana12Greybold right-border" bgcolor="<s:property value="%{bgColor}" />">
							<s:textfield theme="simple" cssClass="%{classCSS}"
										name="bannerFeeValues[%{id}].feesPerView"
										value="%{feesPerView}" size="15" />
						</td>
						<td align="center" class="verdana12Greybold right-border" bgcolor="<s:property value="%{bgColor}" />">
							<s:textfield theme="simple" cssClass="%{classCSS}"
										name="bannerFeeValues[%{id}].feesPerClick"
										value="%{feesPerClick}" size="15" />
						</td>
					</tr>
					</s:iterator>
				</table>
			</td>
		</tr>
		<tr>
			<td align="center" width="100%">
				<s:submit theme="simple" type="image"
					src="../Admin-Images/save-chagnes-button.gif" value="Save Changes" />
				<img onclick="document.getElementById('form').reset();" style="cursor: pointer;" src="../Admin-Images/reset-button.gif" alt="Cancel" />
				<img onclick="history.go(-1);" src="../Admin-Images/cancel_btn.gif"
					alt="Cancel">
			</td>
		</tr>
	</table>
</s:form>